home *** CD-ROM | disk | FTP | other *** search
/ Champak 43 / Vol 43.iso / games / penguin.swf / scripts / DefineSprite_467 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-06-26  |  229 b   |  20 lines

  1. stop();
  2. var i;
  3. if(_root.gameLevel < 3)
  4. {
  5.    i = 1;
  6. }
  7. else if(_root.gameLevel < 5)
  8. {
  9.    i = 2;
  10. }
  11. else if(_root.gameLevel < 7)
  12. {
  13.    i = 3;
  14. }
  15. else
  16. {
  17.    i = int(Math.random() * _totalframes) + 1;
  18. }
  19. gotoAndStop(i);
  20.